package com.kuangshen08.proxy.demo03;

import org.junit.Test;

public class MyTest {

    @Test
    public void test(){
        Rent host = new Host();
        ProxyInvocationHandler pih = new ProxyInvocationHandler();
        pih.setRent(host);
        Rent proxy = (Rent) pih.getProxy();
        proxy.rent();

    }
}
